home *** CD-ROM | disk | FTP | other *** search
Wrap
<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive 4"> <title>Daily Image URL action</title> </head> <body bgcolor="white"> <center> <font size="6">Daily Image URL Action 1.0</font> <p><font>© 1999, Adobe Systems Incorporated<br> All rights reserved.</font></p> <p><font>script by Matt Ridley <hr> </font></p> </center> <p> <csactionclass name="Daily Image URL" function="dailyImageURL" nsversion="3" ieversion="4" vscroll> </p> <p> <csactionparam name="imageName" type="GLActionImageParam"></p> <p> <csactionparam name="monURL" type="GLActionURLParam"></p> <p> <csactionparam name="tuesURL" type="GLActionURLParam"></p> <p> <csactionparam name="wedsURL" type="GLActionURLParam"></p> <p> <csactionparam name="thursURL" type="GLActionURLParam"></p> <p> <csactionparam name="friURL" type="GLActionURLParam"></p> <p> <csactionparam name="satURL" type="GLActionURLParam"></p> <p> <csactionparam name="sunURL" type="GLActionURLParam"> </p> <p></csactionclass> </p> <p> <script language="JavaScript1.2" src="../GlobalScripts/IE.scpt"></script> </p> <p> <script language="JavaScript" cyberversion="N1.2"><!-- // Script copyright 1999, Adobe Systems Incorporated. All rights reserved. function initIArray() { this.length = initIArray.arguments.length; for (var i = 0; i < this.length; i++) this[i+1] = initIArray.arguments[i]; } function dailyImageURL(action) { var dateArray = new initIArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"); var today = new Date(); var day = dateArray[today.getDay()]; if (today.getDay() == 0) { day = "Sunday"; } var img = null; if (document.images) { if (!IsIE()) img = CSFindElement(action[1],0); else img = document.images[action[1]]; if (img) { if (day == "Monday" && action[2] != "(Empty Reference!)") img.src = action[2] if (day == "Tuesday" && action[3] != "(Empty Reference!)") img.src = action[3] if (day == "Wednesday" && action[4] != "(Empty Reference!)") img.src = action[4] if (day == "Thursday" && action[5] != "(Empty Reference!)") img.src = action[5] if (day == "Friday" && action[6] != "(Empty Reference!)") img.src = action[6] if (day == "Saturday" && action[7] != "(Empty Reference!)") img.src = action[7] if (day == "Sunday" && action[8] != "(Empty Reference!)") img.src = action[8] } } } // --> </script> </p> <p> <table cool width="250" height="450" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee"> <tr height="1" cntrlrow> <td width="1" height="1"><spacer type="block" width="1" height="1"></td> <td width="9" height="1"><spacer type="block" width="9" height="1"></td> <td width="8" height="1"><spacer type="block" width="8" height="1"></td> <td width="8" height="1"><spacer type="block" width="8" height="1"></td> <td width="4" height="1"><spacer type="block" width="4" height="1"></td> <td width="5" height="1"><spacer type="block" width="5" height="1"></td> <td width="1" height="1"><spacer type="block" width="1" height="1"></td> <td width="3" height="1"><spacer type="block" width="3" height="1"></td> <td width="44" height="1"><spacer type="block" width="44" height="1"></td> <td width="165" height="1"><spacer type="block" width="165" height="1"></td> </tr> <tr height="11"> <td width="1" height="11"><spacer type="block" width="1" height="11"></td> <td width="9" height="11"><spacer type="block" width="9" height="11"></td> <td width="8" height="11"><spacer type="block" width="8" height="11"></td> <td width="8" height="11"><spacer type="block" width="8" height="11"></td> <td width="4" height="11"><spacer type="block" width="4" height="11"></td> <td width="5" height="11"><spacer type="block" width="5" height="11"></td> <td width="1" height="11"><spacer type="block" width="1" height="11"></td> <td width="3" height="11"><spacer type="block" width="3" height="11"></td> <td width="44" height="11"><spacer type="block" width="44" height="11"></td> <td width="165" height="11"><spacer type="block" width="165" height="11"></td> </tr> <tr height="37"> <td width="1" height="37"><spacer type="block" width="1" height="37"></td> <td width="9" height="37"><spacer type="block" width="9" height="37"></td> <td width="238" height="37" colspan="8" rowspan="1" valign="top" align="left" xpos="9"> <csactioncntrl type="InfoText" value="This Action will swap the base image with the selected image for each day of the week." x="9" y="11" width="221" height="26" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="25" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="imageName" x="82" y="48" width="144" height="21" alignx="scale" aligny="top"> </td> </tr> <tr height="22"> <td width="1" height="22"><spacer type="block" width="1" height="22"></td> <td width="9" height="22"><spacer type="block" width="9" height="22"></td> <td width="8" height="22"><spacer type="block" width="8" height="22"></td> <td width="8" height="22"><spacer type="block" width="8" height="22"></td> <td width="4" height="22"><spacer type="block" width="4" height="22"></td> <td width="5" height="22"><spacer type="block" width="5" height="22"></td> <td width="48" height="22" colspan="3" rowspan="1" valign="top" align="left" xpos="34"> <csactioncntrl type="StaticText" value="Image:" x="34" y="51" width="43" height="14" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="monURL" x="82" y="73" width="144" height="49" alignx="scale" aligny="top"> </td> </tr> <tr height="49"> <td width="1" height="49"><spacer type="block" width="1" height="49"></td> <td width="9" height="49"><spacer type="block" width="9" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="4" height="49"><spacer type="block" width="4" height="49"></td> <td width="5" height="49"><spacer type="block" width="5" height="49"></td> <td width="48" height="49" colspan="3" rowspan="1" valign="top" align="left" xpos="34"> <csactioncntrl type="StaticText" value="Monday Image:" x="34" y="76" width="43" height="26" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="tuesURL" x="82" y="125" width="144" height="49" alignx="scale" aligny="top"> </td> </tr> <tr height="49"> <td width="1" height="49"><spacer type="block" width="1" height="49"></td> <td width="9" height="49"><spacer type="block" width="9" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="4" height="49"><spacer type="block" width="4" height="49"></td> <td width="53" height="49" colspan="4" rowspan="1" valign="top" align="left" xpos="29"> <csactioncntrl type="StaticText" value="Tuesday Image:" x="29" y="128" width="46" height="26" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="wedsURL" x="82" y="177" width="144" height="49" alignx="scale" aligny="top"> </td> </tr> <tr height="49"> <td width="1" height="49"><spacer type="block" width="1" height="49"></td> <td width="9" height="49"><spacer type="block" width="9" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="65" height="49" colspan="6" rowspan="1" valign="top" align="left" xpos="17"> <csactioncntrl type="StaticText" value="Wednesday Image:" x="17" y="180" width="60" height="26" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="thursURL" x="82" y="229" width="144" height="49" alignx="scale" aligny="top"> </td> </tr> <tr height="49"> <td width="1" height="49"><spacer type="block" width="1" height="49"></td> <td width="9" height="49"><spacer type="block" width="9" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="57" height="49" colspan="5" rowspan="1" valign="top" align="left" xpos="25"> <csactioncntrl type="StaticText" value="Thursday Image:" x="25" y="232" width="54" height="26" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="friURL" x="82" y="281" width="144" height="49" alignx="scale" aligny="top"> </td> </tr> <tr height="49"> <td width="1" height="49"><spacer type="block" width="1" height="49"></td> <td width="9" height="49"><spacer type="block" width="9" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="4" height="49"><spacer type="block" width="4" height="49"></td> <td width="5" height="49"><spacer type="block" width="5" height="49"></td> <td width="1" height="49"><spacer type="block" width="1" height="49"></td> <td width="3" height="49"><spacer type="block" width="3" height="49"></td> <td width="44" height="49" colspan="1" rowspan="1" valign="top" align="left" xpos="38"> <csactioncntrl type="StaticText" value="Friday Image:" x="38" y="284" width="40" height="26" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="52" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="satURL" x="82" y="333" width="144" height="49" alignx="scale" aligny="top"> </td> </tr> <tr height="49"> <td width="1" height="49"><spacer type="block" width="1" height="49"></td> <td width="9" height="49"><spacer type="block" width="9" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="8" height="49"><spacer type="block" width="8" height="49"></td> <td width="57" height="49" colspan="5" rowspan="1" valign="top" align="left" xpos="25"> <csactioncntrl type="StaticText" value="Saturday Image:" x="25" y="336" width="51" height="26" alignx="right" aligny="top"> </td> </tr> <tr height="3"> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="9" height="3"><spacer type="block" width="9" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="8" height="3"><spacer type="block" width="8" height="3"></td> <td width="4" height="3"><spacer type="block" width="4" height="3"></td> <td width="5" height="3"><spacer type="block" width="5" height="3"></td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> <td width="3" height="3"><spacer type="block" width="3" height="3"></td> <td width="44" height="3"><spacer type="block" width="44" height="3"></td> <td width="165" height="62" colspan="1" rowspan="2" valign="top" align="left" xpos="82"> <csactioncntrl name="sunURL" x="82" y="385" width="144" height="49" alignx="scale" aligny="top"> </td> </tr> <tr height="59"> <td width="1" height="59"><spacer type="block" width="1" height="59"></td> <td width="9" height="59"><spacer type="block" width="9" height="59"></td> <td width="8" height="59"><spacer type="block" width="8" height="59"></td> <td width="8" height="59"><spacer type="block" width="8" height="59"></td> <td width="4" height="59"><spacer type="block" width="4" height="59"></td> <td width="5" height="59"><spacer type="block" width="5" height="59"></td> <td width="1" height="59"><spacer type="block" width="1" height="59"></td> <td width="47" height="59" colspan="2" rowspan="1" valign="top" align="left" xpos="35"> <csactioncntrl type="StaticText" value="Sunday Image:" x="35" y="388" width="41" height="26" alignx="right" aligny="top"> </td> </tr> </table> </p> <p> </body> </html>